package learn_design_patterns.c1.ducks;

import learn_design_patterns.c1.Duck;
import learn_design_patterns.c1.behaviors.fly.FlyWithWings;
import learn_design_patterns.c1.behaviors.quack.Quack;

/**
 * 野鸭
 * 
 * @author zhangchen
 *
 */
public class MallardDuck extends Duck {

	public MallardDuck() {
		flyBehavior = new FlyWithWings();
		quackBehavior = new Quack();
	}

	/**
	 * 外观是绿头
	 */
	@Override
	public void display() {
		System.out.println("I'm a mallard duck");
	}

}
